package src.first;

public class OuterClass {

    innerClass in = new innerClass();
    public void ouf(){
        System.out.println("OuterClass:ouf");
        in.inf();
    }

    public innerClass doit(){
        in.y = 4;
        return new innerClass();
    }


    class innerClass{
        innerClass(){}

        public void inf(){
            System.out.println("innerClass:inf");
        }

        int y = 0;
    }

//    public static void main(String[] args) {
//        OuterClass outerClass = new OuterClass();
//        //OuterClass.innerClass in = outerClass.doit();
//        OuterClass.innerClass in = outerClass.new innerClass();
//    }
}
